﻿using MediatR;
using RearLivestock.Common.Dtos;
using System.ComponentModel.DataAnnotations;

namespace RearLivestock.RBAC.Api.Application.zjyApplication.Commands.Permissionses
{
    public class CreateRolePermissionsCommand : IRequest<Result>
    {
        /// <summary>
        /// 角色权限编号
        /// </summary>
        public int RolePermissionsId { get; set; }

        /// <summary>
        /// 角色ID (外键)
        /// </summary>
        public int RolesId { get; set; }

        /// <summary>
        /// 权限ID (外键)
        /// </summary>
        public int PermissionsId { get; set; }

        /// <summary>
        /// 1-浏览 2-增加 3-删除 4-编辑
        /// </summary>
        public string Operate { get; set; } = string.Empty;
    }
}
